package com.lovo.util.remote.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

@FeignClient(name = "resource")
public interface IFileRemoteService {
    /**
     * 上传文件到本地磁盘
     * @param file 文件对象
     * @return 返回新的文件名称
     * @throws IOException
     */
    @RequestMapping("uploadFileAb")
    public String uploadFileAb(MultipartFile file) throws IOException;

    /**
     * 获取base64编码图片
     * @param ImgName
     * @return
     * @throws IOException
     */
    @RequestMapping("getBase64Img")
    public String getBase64Img(String ImgName);
}
